#pragma once

#define SCE_GNM_ERROR_UNKNOWN SCE_ERROR_MAKE_ERROR(0xFF, 0xEE)


#define SCE_VIDEO_OUT_ERROR_INVALID_VALUE		-2144796671	/* 0x80290001 */
#define SCE_VIDEO_OUT_ERROR_INVALID_ADDRESS		-2144796670	/* 0x80290002 */
#define SCE_VIDEO_OUT_ERROR_INVALID_PIXEL_FORMAT -2144796669	/* 0x80290003 */
#define SCE_VIDEO_OUT_ERROR_INVALID_PITCH		-2144796668	/* 0x80290004 */
#define SCE_VIDEO_OUT_ERROR_INVALID_RESOLUTION	-2144796667	/* 0x80290005 */
#define SCE_VIDEO_OUT_ERROR_INVALID_FLIP_MODE	-2144796666	/* 0x80290006 */
#define SCE_VIDEO_OUT_ERROR_INVALID_TILING_MODE	-2144796665	/* 0x80290007 */
#define SCE_VIDEO_OUT_ERROR_INVALID_ASPECT_RATIO -2144796664	/* 0x80290008 */
#define SCE_VIDEO_OUT_ERROR_RESOURCE_BUSY		-2144796663	/* 0x80290009 */
#define SCE_VIDEO_OUT_ERROR_INVALID_INDEX		-2144796662	/* 0x8029000A */
#define SCE_VIDEO_OUT_ERROR_INVALID_HANDLE		-2144796661	/* 0x8029000B */
#define SCE_VIDEO_OUT_ERROR_INVALID_EVENT_QUEUE	-2144796660	/* 0x8029000C */
#define SCE_VIDEO_OUT_ERROR_INVALID_EVENT		-2144796659	/* 0x8029000D */
#define SCE_VIDEO_OUT_ERROR_NO_EMPTY_SLOT		-2144796657	/* 0x8029000F */
#define SCE_VIDEO_OUT_ERROR_SLOT_OCCUPIED		-2144796656	/* 0x80290010 */
#define SCE_VIDEO_OUT_ERROR_FLIP_QUEUE_FULL		-2144796654	/* 0x80290012 */
#define SCE_VIDEO_OUT_ERROR_INVALID_MEMORY		-2144796653	/* 0x80290013 */
#define SCE_VIDEO_OUT_ERROR_MEMORY_NOT_PHYSICALLY_CONTIGUOUS -2144796652	/* 0x80290014 */
#define SCE_VIDEO_OUT_ERROR_MEMORY_INVALID_ALIGNMENT -2144796651	/* 0x80290015 */
#define SCE_VIDEO_OUT_ERROR_UNSUPPORTED_OUTPUT_MODE -2144796650	/* 0x80290016 */
#define SCE_VIDEO_OUT_ERROR_OVERFLOW			-2144796649	/* 0x80290017 */
#define SCE_VIDEO_OUT_ERROR_NO_DEVICE			-2144796648	/* 0x80290018 */
#define SCE_VIDEO_OUT_ERROR_UNAVAILABLE_OUTPUT_MODE -2144796647	/* 0x80290019 */
#define SCE_VIDEO_OUT_ERROR_INVALID_OPTION		-2144796646	/* 0x8029001A */
#define SCE_VIDEO_OUT_ERROR_PORT_UNSUPPORTED_FUNCTION -2144796645	/* 0x8029001B */
#define SCE_VIDEO_OUT_ERROR_UNSUPPORTED_OPERATION -2144796644	/* 0x8029001C */
#define SCE_VIDEO_OUT_ERROR_FATAL				-2144796417	/* 0x802900FF */
#define SCE_VIDEO_OUT_ERROR_UNKNOWN				-2144796418	/* 0x802900FE */
#define SCE_VIDEO_OUT_ERROR_ENOMEM				-2144792564	/* 0x8029100C */


#define SCE_GPU_ADDRESS_ERROR_STATUS_INVALID_ARGUMENT -2133655552	/* 0x80D30000 */

#define SCE_GPU_ADDRESS_ERROR_STATUS_INTERNAL_TILING -2133655551	/* 0x80D30001 */


#define SCE_GNM_ERROR_SUBMISSION_FAILED_INVALID_ARGUMENT                  -2133782528
#define SCE_GNM_ERROR_SUBMISSION_NOT_ENOUGH_RESOURCES                     -2133782527
#define SCE_GNM_ERROR_SUBMISSION_AND_FLIP_FAILED_INVALID_COMMAND_BUFFER   -2133782400
#define SCE_GNM_ERROR_SUBMISSION_AND_FLIP_FAILED_INVALID_QUEUE_FULL       -2133782399
#define SCE_GNM_ERROR_SUBMISSION_AND_FLIP_FAILED_REQUEST_FAILED           -2133782398
#define SCE_GNM_ERROR_SUBMISSION_FAILED_INTERNAL_ERROR                    -2133782273
#define SCE_GNM_ERROR_VALIDATION_ERROR                                    -2133774336
#define SCE_GNM_ERROR_VALIDATION_VSHARP                                   -2133774335
#define SCE_GNM_ERROR_VALIDATION_TSHARP                                   -2133774334
#define SCE_GNM_ERROR_VALIDATION_RESOURCE                                 -2133774333
#define SCE_GNM_ERROR_VALIDATION_TABLE_MEMORY                             -2133774332
#define SCE_GNM_ERROR_VALIDATION_WRITE_EVENT_OP                           -2133774331
#define SCE_GNM_ERROR_VALIDATION_INDEX_BUFFER                             -2133774330
#define SCE_GNM_ERROR_VALIDATION_TESS_FACTOR_BUFFER                       -2133774329
#define SCE_GNM_ERROR_VALIDATION_SCRATCH_RING                             -2133774328
#define SCE_GNM_ERROR_VALIDATION_PRIMITIVE_TYPE                           -2133774327
#define SCE_GNM_ERROR_VALIDATION_INDEX_SIZE                               -2133774326
#define SCE_GNM_ERROR_VALIDATION_INLINE_DRAW_SIZE                         -2133774325
#define SCE_GNM_ERROR_VALIDATION_NUM_INPUT_PATCHES                        -2133774324
#define SCE_GNM_ERROR_VALIDATION_GS_MODE                                  -2133774323
#define SCE_GNM_ERROR_VALIDATION_SHADER_ADDRESS                           -2133774322
#define SCE_GNM_ERROR_VALIDATION_BORDER_COLOR_TABLE                       -2133774321
#define SCE_GNM_ERROR_VALIDATION_SSHARP                                   -2133774320
#define SCE_GNM_ERROR_VALIDATION_DISPATCH_DRAW                            -2133774319
#define SCE_GNM_ERROR_VALIDATION_ACTIVE_SHADER_STAGE                      -2133774318
#define SCE_GNM_ERROR_VALIDATION_DCB                                      -2133774317
#define SCE_GNM_ERROR_VALIDATION_MISMATCH_SHADER_STAGE                    -2133774316
#define SCE_GNM_ERROR_VALIDATION_MRT_SETUP                                -2133774315
#define SCE_GNM_ERROR_VALIDATION_BAD_OP_CODE                              -2133774314
#define SCE_GNM_ERROR_VALIDATION_DEPTH_RT_SETUP                           -2133774313
#define SCE_GNM_ERROR_VALIDATION_NUM_INSTANCES                            -2133774312
#define SCE_GNM_ERROR_VALIDATION_SRT                                      -2133774311
#define SCE_GNM_ERROR_VALIDATION_INVALID_ARGUMENT                         -2133770243
#define SCE_GNM_ERROR_VALIDATION_FAILED_INTERNAL_ERROR                    -2133770242
#define SCE_GNM_ERROR_VALIDATION_NOT_ENABLED                              -2133770241
#define SCE_GNM_ERROR_VALIDATION_WARNING                                  -2133778432
#define SCE_GNM_ERROR_VALIDATION_WARNING_RWBUFFER_ROTYPE                  -2133778431
#define SCE_GNM_ERROR_VALIDATION_WARNING_BLENDING                         -2133778430
#define SCE_GNM_ERROR_VALIDATION_WARNING_DRAW_CU_MASK                     -2133778429
#define SCE_GNM_ERROR_VALIDATION_WARNING_MRT_SETUP                        -2133778428
#define SCE_GNM_ERROR_VALIDATION_WARNING_DEPTH_RT_SETUP                   -2133778427
#define SCE_GNM_ERROR_VALIDATION_WARNING_PS_AND_MRT_FORMAT                -2133778417
#define SCE_GNM_ERROR_CAPTURE_FILE_IO                                     -2133766144
#define SCE_GNM_ERROR_CAPTURE_RAZOR_NOT_LOADED                            -2133766143
#define SCE_GNM_ERROR_CAPTURE_NOTHING_TO_CAPTURE                          -2133766142
#define SCE_GNM_ERROR_CAPTURE_FAILED_INTERNAL                             -2133766129
#define SCE_GNM_ERROR_COMPUTEQUEUE_INVALID_PIPE_ID                        -2133757952
#define SCE_GNM_ERROR_COMPUTEQUEUE_INVALID_QUEUE_ID                       -2133757951
#define SCE_GNM_ERROR_COMPUTEQUEUE_INVALID_RING_SIZE                      -2133757950
#define SCE_GNM_ERROR_COMPUTEQUEUE_INVALID_RING_BASE_ADDR                 -2133757949
#define SCE_GNM_ERROR_COMPUTEQUEUE_INVALID_READ_PTR_ADDR                  -2133757948
#define SCE_GNM_ERROR_COMPUTEQUEUE_INVALID_PIPE_PRIORITY                  -2133757947
#define SCE_GNM_ERROR_COMPUTEQUEUE_INTERNAL                               -2133757697
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_INVALID_ARGUMENT              -2133749760
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_INVALID_SHADER                -2133749759
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_STALE_HANDLE                  -2133749758
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_FULL                          -2133749757
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_NOT_PERMITTED                 -2133749756
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_OUTPUT_ARGUMENT_IS_NULL       -2133749755
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_OWNER_HANDLE_INVALID          -2133749754
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_RESOURCE_HANDLE_INVALID       -2133749753
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_RESOURCE_TYPE_INVALID         -2133749752
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_GDS_RESOURCE_TYPE_INVALID     -2133749751
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_RESOURCE_SIZE_INVALID         -2133749750
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_RESOURCE_ADDRESS_IS_NULL      -2133749749
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_GDS_OFFSET_INVALID            -2133749748
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_RESOURCE_NAME_IS_NULL         -2133749747
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_OWNER_NAME_IS_NULL            -2133749746
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_FIND_CALLBACK_IS_NULL         -2133749745
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_RESOURCE_IS_NOT_SHADER        -2133749744
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_USER_MEMORY_PARAM_IS_NULL     -2133749743
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_USER_MEMORY_PARAM_NOT_ALIGNED -2133749742
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_INVALID_NAME_LENGTH_PARAM     -2133749741
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_INVALID_SIZE_PARAM            -2133749740
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_INVALID_NUM_RESOURCES_PARAM   -2133749739
#define SCE_GNM_ERROR_RESOURCE_REGISTRATION_INTERNAL                      -2133745665
#define SCE_GNM_ERROR_GET_GPU_INFO_PARAMETER_NULL                         -2133741568
#define SCE_GNM_ERROR_GET_GPU_INFO_FAILED                                 -2133741567
#define SCE_GNM_ERROR_GET_GPU_INFO_PARAMETER_INVALID                      -2133741566
